Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selected indication for options in high contrast mode #29707

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Sep 8, 2024

Fixes a couple of issues with how selected options were being shown in high contrast mode.

…contrast mode

Fixes that `mat-option` was showing a checkmark and a dot for selected options in high contrast mode. The dot is still necessary if the single selection indicator isn't shown.
@crisbeto crisbeto added Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Sep 8, 2024
@crisbeto crisbeto requested a review from a team as a code owner September 8, 2024 07:39
@crisbeto crisbeto requested review from mmalerba and wagnermaciel and removed request for a team September 8, 2024 07:39
Removes some styles from the list meant for high contrast mode that we inherited from MDC. They aren't necessary, because we have our own way of handling high contrast styles and they were actively making `mat-option` worse by adding extra borders in several cases.
@crisbeto crisbeto removed the request for review from mmalerba September 10, 2024 18:44
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Sep 10, 2024
@crisbeto crisbeto merged commit 9dcb95a into angular:main Sep 10, 2024
24 of 26 checks passed
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 11, 2024
Re-adds the `::before` element that was removed in angular#29707, because the removal broke some internal tests.
crisbeto added a commit that referenced this pull request Sep 11, 2024
Re-adds the `::before` element that was removed in #29707, because the removal broke some internal tests.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker merge: preserve commits When the PR is merged, a rebase and merge should be performed target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants